package com.example.meetdroid;

import java.util.ArrayList;

import com.example.meetdroid.chat.ChatListAdapter;
import com.example.meetdroid.chat.ChatMessage;
import com.example.meetdroid.listview.UserListAdapter;
import com.example.meetdroid.main.User;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;

public class ActivityChat extends  Activity{
	
	private ChatListAdapter adapter;
	private int layOutIDSendMessageTxtView;
	private int layOutIDReceivedMessageTxtView;
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_adduser);
        layOutIDSendMessageTxtView = 0;
        layOutIDReceivedMessageTxtView = 0;
	}


	public void sendMessageToUser(View v) {
		User clickedUser = (User)v.getTag();
		
		//TODO: Session Starten
	}

	private void setupListViewAdapter() {
		 this.layOutIDSendMessageTxtView =  R.layout.listview_item_message_send;
		 this.layOutIDReceivedMessageTxtView =  R.layout.listview_item_message_received;
		adapter = new ChatListAdapter(ActivityChat.this,layOutIDSendMessageTxtView,layOutIDReceivedMessageTxtView, new ArrayList<ChatMessage>());
		ListView chatListView = (ListView)findViewById(R.id.mFriendListView);
		chatListView.setAdapter(adapter);
	}
}

